 
 <div class="page-content" v-if="data">
  <div class="address" v-if="data.consignee_name">
   <div class="address-box">
      <div  class="address-left" range="{{delivery_companys}}" >
      <div class="address-left-text">{{data.deliver_type}}</div>
    
     </div>
     <div class="address-right">
       <div class="address-item">
            <image class='ico' src='/pages/user/images/112.png'></image>
            <div class="title1">
            {{data.deliver_address}} </div>
            <div class="info"> {{data.consignee_name}}  <a :href="'tel://'+data.phone"> {{data.phone}}</a></div>
      
       </div>

    
     <div class="address-item">
        <image class='ico' src='/pages/user/images/111.png'></image>
        <div class="title1">{{data.deliver_time_str}}</div>
         
       </div>
     
     </div>

     <div class="clear"></div>
  </div>

</div>
<!-- 坐标 -->
<div v-if="data.deliver_type=='送货上门' && data.data.location_info && data.data.location_info.latitude"  class='charge-item bgw pd10 chooseCard' bindtap='openUserLocation'>
 <div class="charge-item-left">地理位置</div>
 <div class="charge-item-right" style='width:75%;'>
 <span  >{{data.data.location_info.address}} {{data.data.location_info.latitude}},{{data.data.location_info.longitude}} </span>
 </div>
  <image class='arrowright' src='/pages/user/images/arrowright.png'></image>
  <div class="clear"></div>
</div>
<!-- 坐标 -->

<!-- 快递 -->
<div v-if="data.orderDeliver"  class='charge-item bgw pd10 chooseCard'>
 <div class="charge-item-left">配送信息</div>
 <div class="charge-item-right" style='width:75%;'>
 <div v-if="data.orderDeliver.tracking_number"> 单号： {{data.orderDeliver.tracking_number}} </div>
 <div > 备注：{{data.orderDeliver.remark}} </div>
 </div>
  <!-- <image class='arrowright' src='/pages/user/images/arrowright.png'></image> -->
  <div class="clear"></div>
</div>
<!-- 快递 -->

<!-- 商品列表 -->
<div class="cart-goods">
<div class="cart-title" bindtap='openlocation'>
<img style="margin-top: 5px"   class='ico s_left' src='/pages/user/images/112.png'/>
 <span class="s_left"> {{mainorder.shop.name}} </span>
 <span class="s_right color_0">{{data.statusText}}</span>
  <div class="clear"></div>
</div>
 
<a class="goods-item" v-for="item in data.goods_info" :href="'/pages/shop/?store_id='+app.getStoreId()+'#/goods/'+item.goods_id">
        <image class='image' :src='item.default_img+"?imagediv2/1/w/160/h/160"'></image>
        <div class='goods-info' style="margin-left: 10px">
          <div class="title1 text-over-hidden" >{{item.goods_name}}</div>
          <div class="light text-over-hidden">{{item.attrs}}</div>
        
         <div class='goods-count'>¥{{item.total_price}} x {{item.count}}</div>
        
          </div>
          <div class="clear"></div>
 </a>
 
 <div class="line mgt10"></div>
<div class='charge-item' v-for="charge in data.promotion_info">
 <div class="charge-item-left">{{charge.name}}</div>
 <div class="charge-item-right">{{charge.showPrice}}</div>
  <div class="clear"></div>
</div>
 <div class='remark' >
    备注:{{data.remark?data.remark:'无'}} 
   
</div>
    <div class="line"></div>
<div class='goods-total-price'>
   共计{{data.goods_info.length}}件商品 ， 小计{{data.order_amount}}元 
</div>
<div class="goods-bottom">
       <span  v-if="mainorder.paytypeText"> 支付方式：</span>  <span class=" color_0">{{mainorder.paytypeText}}</span> <span class='pd5-h'></span>  <span> 支付状态：</span>  <span class=" color_0">{{mainorder.payStatusText}}</span> 
    </div>
   
 
    <div class="goods-btns mgt10">
        

 <div class="order_btn btn2" @click='show_refund_money'  v-if="mainorder.status>0  && mainorder.status!=4"  :order_sn="mainorder.order_sn" :shop_id="data.shop_id" :data-refund_money="mainorder.order_amount" :paystatus="mainorder.paystatus" order_type="shopping" >
            取消订单
        </div>

         <div  class="buttonNone order_btn btn4 "  v-if="mainorder.status>1"  :loading="prinrting" disabled="prinrting" @click='orderPrint'  :shop_id="data.shop_id"   :order_sn="mainorder.order_sn">
            打印
        </div>

         

          <div class="order_btn btn"  @click='shopping_complete(data.order_sn)'  v-if="data.status==5"  :shop_id="data.shop_id"  :order_sn="data.order_sn">
            完成
        </div>

         <div class="order_btn btn2"  @click='deliverMallOrder' v-if="data.status==6"  :shop_id="data.shop_id"  :order_sn="data.order_sn">
            配送
        </div>

          <div class="order_btn btn" @click='shopping_receiving(data.order_sn)'  v-if="mainorder.status==2"  :shop_id="data.shop_id"  :order_sn="data.order_sn">
            接单
        </div>


        <div class="clear"></div>
    </div>
</div>
 <div class='line'></div>


 
 <!--自己配送弹出层-->
 <div @click='popup=0' :class="popup==1?'popupBg':'popupHide'"></div>
  <div :class="popup==1?'popup modal-in bw':'popup popupHide'">
    <div class="popup-title">自营配送</div>
    <form id="formSubmit">
       <div class="list-li">
          <div class="li"  >
                <div class="li-input-text">备注</div>
                <div class="li-input">
                  <input placeholder='备注'  name='remark'></input>
                </div>
                <div class="clear"></div>
             </div>

              <div class="li"  >
                <div class="li-input-text">运输单号</div>
                <div class="li-input">
                  <input placeholder='可填写快递单号'  name="tracking_number"   ></input>
                </div>
                <div class="clear"></div>
             </div>

              <div class="btn_group">
              <div class="order_btn btn" @click='deliver_diy'>提交</div>
               <div class="order_btn" @click='popup=0'>取消</div>
               <div class="clear"></div>
            </div>
         </div>
     
    </form>
  </div>
  <!--弹出层-->



 <!--蜂鸟配送弹出层-->
  <div @click='popup2=0' :class="popup2==1?'popupBg':'popupHide'"></div>
  <div :class="popup2==1?'popup modal-in bw':'popup popupHide'">
    <div class="popup-title">蜂鸟配送</div>
    <form id="formSubmit2">
      <div class="list-li">
          <div class="li"  >
                <div class="li-input-text">备注</div>
                <div class="li-input">
                  <input placeholder='备注'     name='remark'></input>
                </div>
                <div class="clear"></div>
             </div>

              <div class="li"  >
                <div class="li-input-text">订单总重量</div>
                <div class="li-input">
                  <input placeholder='订单总重量（kg）'  name="order_weight"   ></input>
                </div>
                <div class="clear"></div>
             </div>
           <div class="btn_group">
              <div class="order_btn btn" @click='deliver'>提交</div>
               <div class="order_btn" @click='popup2=0'>取消</div>
               <div class="clear"></div>
            </div>
         
      </div>
    </form>
  </div>
  <!--弹出层-->



  <!--退款弹出层-->
   <div @click='popup3=0' :class="popup3==1?'popupBg':'popupHide'"></div>
  <div :class="popup3==1?'popup modal-in bw':'popup popupHide'">

       <div class="list-li">
         
             <div class="li"  >
                <div class="li-input-text">备注</div>
                <div class="li-input">
                  <input placeholder='请输入退回备注'   v-model="remark"  name='remark'></input>
                </div>
                <div class="clear"></div>
             </div>

              <div class="li"  >
                <div class="li-input-text">退回金额</div>
                <div class="li-input">
                  <input placeholder='退回金额'  name="refund_money" v-model="refund_money"  ></input>
                </div>
                <div class="clear"></div>
             </div>
            <div class="btn_group">
              <div class="order_btn btn" @click='cancel_order'>提交</div>
               <div class="order_btn" @click='hide_refund_money'>取消</div>
               <div class="clear"></div>
            </div>
         

      </div>
       
  </div>
  <!--弹出层--> 
 
</div>
 